﻿package dk.gaming.rummikub.events
{
	import flash.events.Event;
	
	public class GameEvent extends Event
	{
		public static var LOGIN_SUCCESFUL : String = "geLoginSuccesful";
		public static var JOIN_RESULT : String = "geJoinResult";
		
		public var data:*;
		public var datatype:Class;
		public var gameID : String;
		
		public function GameEvent(type:String, bubbles:Boolean = false, cancelable : Boolean = false, $data:*=null, $datatype:Class=null, $gameID="")
		{
			super(type, bubbles, cancelable);
			this.data = $data;
			this.datatype = $datatype;
			this.gameID = $gameID;
		}
		
		override public function clone():Event
		{
			return new GameEvent(type,bubbles, cancelable, data, datatype, gameId);
		}
		

		
	}
	
}